package com.example.demo;

import cn.hutool.crypto.asymmetric.RSA;
import com.example.demo.advice.EncryptResponseBody;
import com.kming.crypto.annotation.EnableControllerCrypto;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@EnableControllerCrypto(responseAdvice = EncryptResponseBody.class)
@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);

        RSA rsa = new RSA();
        System.out.println(rsa.getPrivateKeyBase64());
        System.out.println(rsa.getPublicKeyBase64());
    }

}
